from django.db import models
from utils.models import BaseModel
from orders.models import OrderInfo

"""
将我们自己的order_id, 和支付宝的订单关联
"""
class PayModel(BaseModel):

    order = models.ForeignKey(OrderInfo,on_delete=models.CASCADE,verbose_name="订单编号")
    trade_id = models.CharField(max_length=100, unique=True, null=True, blank=True, verbose_name="支付编号")

    class Meta:
        db_table = "tb_payment"
